<template>
  <div class="bar">
    <div class="warpper">
      <div class="content">
        <div class="left" @click="handleToManage">此处应有LOGO</div>

        <div class="right">
          <div>
            <AvatarDropdown />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import AvatarDropdown from '@/layouts/header/AvatarDropdown.vue';
import { MANAGE } from '@/router/route-name';
import { useRouter } from 'vue-router';
export default defineComponent({
  components: { AvatarDropdown },
  setup() {
    const router = useRouter();

    const handleToManage = () => {
      router.push({ name: MANAGE });
    };
    return {
      handleToManage,
    };
  },
});
</script>
<style lang="less" scoped>
.bar {
  box-shadow: 6px 12px 25px rgb(232 232 232);
  .warpper {
    width: 100%;
    background-color: #ffffff;
    height: 56px;
    font-size: 14px;
    color: #262626;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    .content {
      width: 1392px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .right {
        display: flex;
        align-items: center;
      }
      .left {
        cursor: pointer;
      }
    }
  }
}
</style>
